package com.lagou.edu.mvcframework.servlet;

import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LagouService;

//public class Testing implements IDemoService {
//    public static void main(String[] args) {
//        String scanPackagePath = Thread.currentThread().getContextClassLoader().getResource("").getPath() + "com.lagou.edu".replaceAll("\\.", "/");
//        System.out.println(scanPackagePath);
//        System.out.println(Testing.class.getResource("").getPath());
//
//
//        System.out.println(Testing.class.getSimpleName());  //Testing
//        System.out.println(Testing.class.getName());    //com.lagou.edu.mvcframework.servlet.Testing\
//
//        Class<?>[] interfaces = Testing.class.getInterfaces();
//        for (Class<?> anInterface : interfaces) {
//            System.out.println(anInterface.getName());  //com.lagou.demo.service.IDemoService
//            System.out.println(anInterface.getSimpleName());    //IDemoService
//        }
//    }
//
//    @Override
//    public String get(String name) {
//        return null;
//    }
//}
